#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

# @Author  : Tina Yu
# @Time    : 2021-6-8 17:31


from random import uniform

from faker import Faker


# 生成测试数据
def labor_wage_person():
    fake = Faker(locale='zh_CN')
    person_list = []
    name = fake.name()
    day_pay = round(uniform(50, 1000), 2)
    work_day = round(uniform(0, 100), 2)
    need_pay = round(day_pay * work_day, 2)
    id_num = fake.ssn()
    bank = fake.bban()
    content = fake.paragraph()
    person_list.append(str(name))
    person_list.append(str(day_pay))
    person_list.append(str(work_day))
    person_list.append(str(need_pay))
    person_list.append(str(id_num))
    person_list.append(str(content))
    person_list.append(str(bank))
    return person_list


# 将测试数据放入列表
def labor_wage_person_add(num):
    base_list = []
    for i in range(num):
        fake_new_list = labor_wage_person()
        base_list.append(fake_new_list)
    return base_list
